﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using ComponentFactory.Krypton.Toolkit;

namespace HefaSyncTool.Controls
{
    public class HFMessageBox
    {
     
        public static void Show(string message)
        {
            KryptonMessageBox.Show(message);
        }

        public static void Show(string title, string message)
        {
            KryptonMessageBox.Show( message,title);
        }

        public static void ShowAlert(string title, string message)
        {
            KryptonMessageBox.Show(message, title, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
        }

        public static void ShowError(string message)
        {
            KryptonMessageBox.Show(message, "错误！", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }

        public static DialogResult ShowCheck(string message, string caption)
        {
           return KryptonMessageBox.Show(message, caption, MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
        }

        public static DialogResult ShowTip(string message, string caption)
        {
            return KryptonMessageBox.Show(message, caption, MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
    }
}
